package com.gict.antifraudback.mapper;

import com.gict.antifraudback.entity.Article;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author XIE
* &#064;description  针对表【article】的数据库操作Mapper
* &#064;createDate  2023-11-02 15:18:53
* &#064;Entity  com.gict.antifraudback.entity.Article
 */
public interface ArticleMapper extends BaseMapper<Article> {

    List<Article> selectRandomTenByType(@Param("contentType") Integer contentType);

    @Select("SELECT * FROM article ORDER BY RAND() LIMIT 3")
    List<Article> selectRandomArticle();

}




